package xyz.luckyli.springcloud.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import xyz.luckyli.springcloud.dao.DeptDao;
import xyz.luckyli.springcloud.pojo.Dept;

import java.util.List;

/**
 * ClassName:DeptServiceImpl
 * Package:xyz.luckyli.springcloud.service
 * Description:
 *
 * @Date:2020/9/29 14:42
 * @Author:857251389@qq.com
 */
@Service
public class DeptServiceImpl implements DeptService {

    @Autowired
    private DeptDao deptDao;

    @Override
    public boolean addDept(Dept dept) {

        return deptDao.addDept(dept);
    }

    @Override
    public Dept queryById(Long id) {
        return deptDao.queryById(id);
    }

    @Override
    public List<Dept> queryAll() {
        return deptDao.queryAll();
    }
}
